package file;

import java.io.File;

/**
 * 创建多级目录
 */
public class MkDirsDemo {
    public static void main(String[] args) {
        File dirs = new File("a/b/c/d/e/f");
        if (!dirs.exists()) {
            dirs.mkdirs();
            System.out.println("This directory is create!!!");
        }else {
            System.out.println("This directory has been create!!!");
        }
    }
}
